package com.chao.mail.repositories.entity

import org.springframework.data.annotation.Id
import org.springframework.data.mongodb.core.mapping.Document
import org.springframework.data.mongodb.core.mapping.Field
import java.util.*

@Document(collection = "mail")
data class MailPo(
        @Id var id: String? = null,
        @Field var from: String,
        @Field var to: String,
        @Field var subject: String,
        @Field var cc: String?,
        @Field var bcc: String?,
        @Field var text: String,
        @Field var sendData: Date? = Date(),
        @Field var createdTime: Date = Date(),
        @Field var updatedTime: Date? = null,
)
